#include<iostream>
#include<vector>
using std::cout;
using std::endl;
using std::cin;
using std::vector;


class Solution {
public:
    void reverseString(vector<char>& s) 
	{
		char a;
        for(int i=0,j=s.size()-1;i<j;i++,j--)
        {
        	a=s[i];
        	s[i]=s[j];
        	s[j]=a;
		}
    }
};

int main()
{
	Solution solution;
	vector<char> vec={'h','e','l','l','o'};
	solution.reverseString(vec);
	for(int i=0;i<vec.size();i++)
	{
		cout<<vec[i]<<endl;
	}
	return 0;
}
